﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Close Page</title>
<script type="text/javascript">
if (isFirefox = navigator.userAgent.indexOf("Firefox") > 0)
{
    netscape.security.PrivilegeManager.enablePrivilege('UniversalBrowserWrite');
    window.close();
}  
else
{
    window.close();
}
//function myCloser() {
//    var Sys = {};
//    var ua = navigator.userAgent.toLowerCase();
//    var s;
//    (s = ua.match(/msie ([\d.]+)/)) ? Sys.ie = s[1] :
//    (s = ua.match(/firefox\/([\d.]+)/)) ? Sys.firefox = s[1] :
//    (s = ua.match(/chrome\/([\d.]+)/)) ? Sys.chrome = s[1] :
//    (s = ua.match(/opera.([\d.]+)/)) ? Sys.opera = s[1] :
//    (s = ua.match(/version\/([\d.]+).*safari/)) ? Sys.safari = s[1] : 0;

//    if (Sys.ie) window.opener = "whocares"; window.close();
//    if (Sys.firefox)
//        netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite");
//    window.open('', '_self');
//    window.close();
//    if (Sys.chrome) window.opener = "whocares"; window.close();
//    if (Sys.opera) window.opener = "whocares"; window.close();
//    if (Sys.safari) window.opener = "whocares"; window.close();
//}
</script>
</head>
<body>
</body>
</html>
